<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>专家人工服务管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
	</style>
</head>
<body>
	<form:form id="inputForm" modelAttribute="expertManualService" class="form-input" action="${ctx}/expert/expertManualService/save" method="post">
		<form:hidden path="id"/>
		<c:set var="customerId" scope="session" value="${expertManualService.customer.id}"></c:set>
		<c:set var="employeeId" scope="session" value="${expertManualService.employee.id}"></c:set>
		<div class="icon-buttons">
			<a href="${ctx}/expert/expertManualService/" data-icon="back" data-iconpos="notext" data-inline="true" data-role="button">返回</a>
		</div>
		<tags:message content="${message}"/>
		<br/>
		<h3 class="middleCls">超级专家分析明细</h3>
		<label>店员&nbsp;&nbsp;:&nbsp;&nbsp;${expertManualService.employee.name}</label><br/><br/>
		<label>请求日期&nbsp;&nbsp;:&nbsp;&nbsp;${expertManualService.askDatetime}</label><br/><br/>
		<label>答复日期&nbsp;&nbsp;:&nbsp;&nbsp;${not empty expertManualService.answerDatetime ? expertManualService.answerDatetime : '未答复'}</label><br/>
		<label>客户&nbsp;&nbsp;:&nbsp;&nbsp;${expertManualService.customer.name}</label>&nbsp;&nbsp;&nbsp;
		<input type="button" onclick="showCustomerDetail()"  data-inline="true" value="点击查看客户信息"><br/>
		<label>问题:</label>
		<div class="detail-desc">
			<p style="word-break:break-all">${fns:unescapeHtml(expertManualService.question)}</p>
		</div>
		<label>答复:</label>
		<div class="detail-desc">
			<p style="word-break:break-all">${fns:unescapeHtml(expertManualService.answer)}</p>
		</div>
	</form:form>
	<script type="text/javascript">
		function showCustomerDetail(){
			sessionStorage.target = "detail";
			var url = "${ctx}/base/customer/detail?id=${expertManualService.customer.id}&emsId=${expertManualService.id}";
			window.location.href = url;
		}
	</script>
</body>
</html>
